package com.bjpowernode.boss.common.enums;

import lombok.*;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum AjaxCode {
    LOGIN_SUCCESS(200,"登录成功"),
    UNKNOWN_ERROR(1001,"未知错误,请稍后重试"),
    LOGIN_USER_INVALID(1002,"无效的登录用户"),
    LOGIN_TOKEN_SAVE_FAIL(1003,"登录凭证存储失败"),
    LOGIN_NAME_OR_PASSWORD_ERROR(1004, "用户名或密码错误"),
    REQUEST_PARAM_ERROR(1005,"请求参数错误"),
    LOGIN_OUT_SUCCESS(200, "退出登录成功"),
    LOGIN_TOKEN_INVALID(1006,"登录失效,请重新登录"),
    OBTAINED_USERINFO_SUCCESS(200,"获取userInfo成功"),
    CURRENT_PAGE_NUMBER_IS_NOT_ERROR(1007,"PageSize大于数据条数时,当前页不能大于1"),
    USER_LOGIN_NAME_DUPLICATE(1008,"用户名已存在"),
    ADD_FAILURE(1009,"添加失败"),
    USER_NONE(1010,"用户名不存在"),
    PAY_PRODUCT_CODE_DUPLICATE(1011,"支付产品编号已存在"),
    PAY_PRODUCT_NAME_DUPLICATE(1011,"支付产品名称已存在"),
    MENU_GET_SUCCESS(200,"菜单获取成功"),
    CHANGE_STATUS_SUCCESS(200,"状态修改成功"),
    DELETE__SUCCESS(200,"删除成功"),
    ADD__SUCCESS(200,"添加成功"),
    EDIT__SUCCESS(200,"编辑成功"),
    USERINFO_GET_SUCCESS(200,"用户信息获取成功"),
    PAY_WAY_GET_SUCCESS(200,"支付方式获取成功"),
    OPTIONS_GET_SUCCESS(200,"OPTIONS获取成功"),
    PAY_PRODUCT_GET_SUCCESS(200,"产品信息获取成功");
    private Integer code;
    private String msg;
}
